//
//  DTDeviceAudio.h
//  PersonalManager
//
//  Created by user on 16/8/17.
//  Copyright © 2016年 Haiyun.Qian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DTJavascriptCommand.h"
#import "DTDeviceAudioAction.h"

@interface DTDeviceAudio : NSObject

@property(nonatomic,strong) DTDeviceAudioAction *action;

/** 开始录音 */
- (void)startRecord:(DTJavascriptCommand *)command;

/** 停止录音 */
- (void)stopRecord:(DTJavascriptCommand *)command;

/** 监听录音自动结束 */
- (void)onRecordEnd:(DTJavascriptCommand *)command;

/** 播放 */
- (void)play:(DTJavascriptCommand *)command;

/** 暂停播放 */
- (void)pause:(DTJavascriptCommand *)command;

/** 断点续播 */
- (void)resume:(DTJavascriptCommand *)command;

/** 停止播放 */
- (void)stop:(DTJavascriptCommand *)command;

/** 监听音频播放停止自动调用 */
- (void)onPlayEnd:(DTJavascriptCommand *)command;

/** 下载音频 */
- (void)download:(DTJavascriptCommand *)command;

/** 语音转文字 */
- (void)translateVoice:(DTJavascriptCommand *)command;

@end
